import React from 'react';
import {Route,BrowserRouter} from 'react-router-dom'; // BrowserRouter 路由导航

import {HomePage} from './pages'

function App() {
  return (
    <div className="App">
      <BrowserRouter>
        <Route path="/" exact component={HomePage} />
        <Route path="/singIn" render={()=><h1>登录页面</h1>} />
        <Route path="/detail" render={()=><h1>详情页面</h1>} />
      </BrowserRouter>
    </div>
  );
}

export default App;
